/* base */
body {
  background-color: #e5e5e5;
}

#main {
  width: 90%;
  max-width: 1400px;
  min-width: 960px;
  margin: 10px auto;
  min-height:400px;
  position: relative;
}
#topic_list {
  margin: 0;

  .cell:hover {
    background: #FAFAFA;
  }
}
#content {
  padding: 0;
  margin-right: 300px;
}
#sidebar {
  width: 290px;
  font-size: 14px;
  float: right;
  margin-bottom: 20px;
}
#content .panel {
  background: hsla(0, 0%, 100%, 1);
}
#content .topic_full_title {
    font-size: 22px;
    font-weight: bold;
    margin: 8px 0;
    display: inline-block;
    font-family: Optima, "Helvetica Neue", Helvetica, "Hiragino Sans GB", "Wenquanyi Micro Hei", "Microsoft Yahei", Arial, sans-serif;
    vertical-align: bottom;
}
#content .changes {
    font-size: 12px;
    color: #838383;

    span:before {
      content: "•"
    }
}
#content .action {
    text-align: right;
}
#content h3 {
}
#manage_topic a {
  text-decoration: none;
  margin-right: 0.5em;
}
#sidebar .panel {
  background: hsla(0, 0%, 100%, 1);
  font-size: 13px;
}
#sidebar .header {
  color: hsl(202, 6%, 34%);
}
#sidebar .topic_title {
  max-width: 270px;
  font-size: 14px;
}
#footer {
  height: 160px;
  clear: both;
  position: relative;
  background: white;
  box-shadow: 0 -1px 0px rgba(168, 168, 168, 0.33);
}
#footer_main {
  width: 90%;
  max-width: 1400px;
  min-width: 960px;
  margin: 0px auto;
  color: #e2e2e2;
  padding: 20px 0px;
  font-size: 13px;
  line-height: 2em;
  .col_fade {
    a {
      vertical-align: bottom;
    }
    p {
      line-height: 20px;
      vertical-align: bottom;
    }
  }
}
#mark_all_messages_btn {
  margin: 5px 0px;
}
#forgot_password {
    margin-left: 1em;
}

/* common */
.col_fade {
  color: hsl(0,0%,67%);
}
.header .col_fade{
  color: hsl(202, 6%, 34%);
}
.bold {
  font-weight: bold;
}
a.dark {
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  color: #666;
}
a.dark:link, a.dark:visited, a.dark:active {
  color: #666;
  text-decoration: none;
}
a.dark:hover {
  color: #385f8a;
}
a.light:link, a.light:visited, a.light:active {
  color: #005580;
  text-decoration: none;
}
a.light:hover {
  color: gray;
  text-decoration: none;
}
.unstyled li div {
  overflow: hidden;
}

.panel {
  margin-bottom: 13px;
  box-shadow: 0px 1px 1px hsla(0, 0%, 40%, 0.47);
}
.panel .header {
  padding: 7px 10px;
  background-color: #F5F5F5;
  box-shadow: 0px 1px 0px rgb(224, 224, 224);
}
.panel .moon {
  padding: 10px;
}
.panel .moon_tags {
  padding-left: 10px;
}
.panel .inner .unstyled li div {
  text-overflow: ellipsis;
}
.panel .inner.topic,
.panel .inner.reply,
.panel .inner.userinfo,
.panel .inner.post {
  padding: 10px;
}
.panel .inner {
  line-height: 2em;
  padding: 10px;
}
.panel .inner>form.form-horizontal {
    margin-top: 40px;
}
.panel .inner.no-padding {
  padding: 0;
}
.panel .inner li {
    line-height: 2em;
}
.panel>.cell:last-child {
  box-shadow: none;
}
.cell {
  overflow: hidden;
  position: relative;
  padding: 10px 0px 10px 10px;
  font-size: 14px;
}
.panel .cell {
    padding-right: 10px;
    background: white;
    border-top: 1px solid  rgb(240, 240, 240);
}
.cell .reply_count {
    width: 70px;
    display: inline-block;
    text-align: center;
}
.cell .count_of_replies {
    color: rgb(158, 120, 192);
}
.cell .count_seperator {
    margin: 0 -3px;
    font-size: 10px;
}
.cell .count_of_visits {
    font-size: 10px;
    color: rgb(180, 180, 180);
}
.cell .cell {
  padding: 10px 0px 0px 10px;
}
.cell:last-child {
  border-bottom: none;
}
.cell.message, .cell[message_id] {
  padding: 10px;
}
.cell.message a, .cell[message_id] a {
  max-width: 460px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: middle;
}
.cell.more{
  padding: 10px;
}
.last_time {
  font-size: 11px;
  display: inline-block;
  margin-left: 20px;
  color: #777;
}
.last_time .last_active_time {
    text-align: right;
    min-width: 50px;
    display: inline-block;
    white-space: nowrap;
}
a.last_time {
  text-decoration: none;
}
.last_time .user_small_avatar {
    height: 18px;
    width: 18px;
    vertical-align: middle;
    box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.62);
    margin-right: 0.5em;
}
.board .floor {
}
.board a {
  color: #404040;
}
.board a:hover {
  color: #385f8a;
  text-decoration: none;
}
.big {
  font-size: 14px;
}
.messages_count {
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -o-border-radius: 8px;
  border-radius: 8px;

  padding: 1px 5px;
  background-color: #46a546;
  color: white;
  margin-right: 0.5em;
}
.edit_tag {
  margin-left: 8px;
}
.tag a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}
.tag a:hover {
  color: #ccc;
}
a.tag_big {
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  -o-border-radius: 3px;
  border-radius: 3px;

  padding: 2px 5px;
  margin: 0 8px 5px 0;
  display: inline-block;
  text-decoration: none;
}

.tag_selectable {
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  -o-border-radius: 3px;
  border-radius: 3px;

  display: inline-block;
  padding: 3px 5px;
  margin: 0px 10px 10px 0px;
  border: 1px solid #ccc;
  cursor: pointer;
}
.tag_select {
  color: #0099ff;
}
.tag_in_topic {
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  -o-border-radius: 3px;
  border-radius: 3px;

  font-size: 14px;
  padding: 1px 3px;
  margin: 0px 10px 10px 0px;
  background: #bfbfbf;
  display: inline-block;
  cursor: pointer;
}
.tag_in_topic a {
  color: #fff;
  text-decoration: none;
}
.tag_in_topic a:hover {
  color: #0099ff;
}
.tag_in_abstract{
  color: #fff;
  background: hsl(221,28%,83%);
  font-size: 14px;
  font-weight: bold;
  padding: 1px 2px;
  text-decoration: none;
  margin: 0px 2px;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  -o-border-radius: 3px;
  border-radius: 3px;
}
.tag_in_abstract:hover {
  background: hsl(221,28%,73%);
}
.tag_with_num {
  margin-right: 10px;
  display: inline-block;
}
.tag_num {
  font-size: 11px;
  margin-left: -10px;
}
.tag_highlight {
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  padding: 1px 2px;
}
.user_avatar img, .user_big_avatar img {
  box-shadow: 0px 1px 2px hsla(0, 0%, 0%, 0.5);
  width: 30px;
  height: 30px;
}
a.user_avatar:hover {
  text-decoration: none;
}
.user_card .user_avatar {
  vertical-align: middle;
  width: 48px;
  margin-right: 0.5em;
}
.cell .user_avatar {
}
.user_big_avatar {
  float: left;
  margin-right: 10px;
}
.user_big_avatar img {
  width: 40px;
  height: 40px;
}
.user_icon {
  opacity: 0.4;
}
.user_icon:hover {
  opacity: 0.6;
}
.user {
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  -o-border-radius: 3px;
  border-radius: 3px;

  -webkit-box-shadow: 0 2px 2px rgba(0, 0, 0, 0.15);
  -moz-box-shadow: 0 2px 2px rgba(0, 0, 0, 0.15);
  -o-box-shadow: 0 2px 2px rgba(0, 0, 0, 0.15);
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.15);

  width: 200px;
  height: 80px;
  border: 1px dashed #e2e2e2;
  padding: 10px;
  margin-right: 20px;
  margin-bottom: 20px;
  display: inline-block;
}
.user .user_avatar {
  width: 32px;
  height: 32px;
}
.user .user_name {
  font-size: 14px;
  margin-left: 1em;
}
.user_name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
}
.reply_author {
  font-size: 11px;
}
.reply_time {
    font-size: 11px;
}
.cell .anchor {
    position: absolute;
    top: -5px;
}
.author_content .user_avatar {
    display: inline-block;
    float: left;
}
.user_info {
  margin-left: 10px;
  display: inline-block;
  float: right;
}
.user_action {
  float: right;
  margin-left: 20px;
}
.user_action a {
  text-decoration: none;
}
.reply_content {
  padding-left: 50px;
  color: #333;
}
.reply_editor {
  height: 200px;
}
.reply2_btn, .reply2_at_btn {
  opacity: 0.4;
  cursor: pointer;
}
.reply2_btn:hover, .reply2_at_btn:hover {
  opacity: 0.6;
}
.reply2_area {
  margin-left: 42px;
}

.reply2_form {
  display: none;
  margin-top: 2px;
}

.submit_control {
  height: 48px;
  line-height: 48px;
}
a.topic_title {
    max-width: 70%;
    text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    vertical-align: bottom;
    font-size: 16px;
    line-height: 30px;
    font-family: Optima, "Helvetica Neue", Helvetica, "Hiragino Sans GB", "Wenquanyi Micro Hei", "Microsoft Yahei", Arial, sans-serif;
}
#topic_list a.topic_title {
    color: #333;
}
#topic_list a.topic_title:visited{
  color: #888;
}
.topic_title_wrapper{
  text-overflow: ellipsis;
  white-space: nowrap;
}
.put_top {
  background: #000;
  padding: 1px 2px;
  border-radius: 2px;
  -webkit-border-radius: 2px;
  -moz-border-radius: 2px;
  -o-border-radius: 2px;
  color: white;
  font-size: 13px;
}
.star_name {
}
img.unread {
  opacity: 0.1;
  cursor: pointer;
}

/* single */
#create_topic_btn {
}
.board {
  margin-top: 10px;
  width: 80%;
}
.tags_select {
  border: 1px dashed #ccc;
  padding: 10px;
}
.user_profile {
  margin-top: 20px;
  clear: left;
}
#collect_btn {

}
#backtotop {
  width: 24px;
  color: gray;
  padding: 12px 0px 12px 5px;
  display:none;
  position: fixed;
  cursor: pointer;
  text-align: center;
  z-index: 20;
  background-color: white;
  border-radius: 12px 0px 0px 12px;
}
.tabbable ul {
  max-height: 40px;
}
/* markdown editor */
.markdown-text p, .preview p {
    white-space: pre-wrap;       /* CSS3 */
    white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
    white-space: -pre-wrap;      /* Opera 4-6 */
    white-space: -o-pre-wrap;    /* Opera 7 */
    word-wrap: break-word;       /* Internet Explorer 5.5+ */
    line-height: 2em;
    margin: 1em 0;
}
.markdown-text>*:first-child, .preview>*:first-child {
    margin-top: 0;
}
.markdown-text>*:last-child, .preview>*:last-child {
  margin-bottom: 1em;
}
.markdown-text li, .preview li {
  font-size: 14px;
  line-height: 2em;
}
.markdown-text p code, .preview p code,
.markdown-text li code, .preview li code {
    color: black;
    box-shadow: 0px 0px 1px rgb(153, 153, 153);
    background-color: #fcfafa;
    padding: 4px 6px;
}
.markdown-text pre.prettyprint,
.preview pre.prettyprint {
  margin: 0.5em -10px;
}
.preview {
    padding: 0.5em;
    font-size: 15px;
    min-height: 200px;
}
.preview p > img {
    display: block;

    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.6);
}

.markdown_editor .markdown_in_preview,
.markdown_editor .markdown_in_editor {
  display: none;
}

.markdown_editor.in_preview .markdown_in_preview {
  display: block;
}
.markdown_editor.in_editor .markdown_in_editor {
  display: block;
}
textarea#title {
    width: 98%;
    border: none;
    margin-bottom: 1em;
}
.editor_buttons {
    margin-top: 10px;
}
.editor_buttons > button {
    vertical-align: baseline;
}

/* custom bootstrap */
.navbar {
  margin-bottom: 0px;
  z-index: 9;
  width: 100%;
  position: relative;
  box-shadow: 0px 0px 1px hsl(0, 0%, 40%);
  background: white;
  font-size: 13px;
}
.navbar-inner {
  background: none;
  border-radius: 0px;
  border: none;
  box-shadow: none;
  width: 90%;
  margin: auto;
}
.navbar .container {
  width: 100%;
  min-width: 960px;
  margin: 0px auto;
  max-width: 1400px;
}
.navbar .brand {
  padding: 4px 0px 0px 20px;
  width: 143px;
}
.navbar .navbar-search {
  margin-top: 6px;
}
.navbar .search-query {
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: 0px 0px 4px hsl(0, 12%, 76%);
  background: white url('../images/search.png') no-repeat 4px 4px;
  padding: 4px 5px 4px 22px;
  color: #666;
  border: 0px;
}
.navbar .search-query:hover {
  background-color: #fff;
  color: #666;
}
.navbar .search-query:focus, .navbar .search-query.focused {
  background-color: #fff;
  padding: 4px 5px 4px 22px;
  color: #000;
}
.navbar .nav .divider-vertical {
  background-color:#2b3741;
  border-right: 1px solid #2f3b46;
}
.navbar .nav > li > a {
  text-shadow: none;
  color: hsl(210, 27%, 30%);
}
.form-actions {
  border-top: none;
  background-color: white;
}
.btn {
  padding: 3px 14px;
}
.breadcrumb {
  padding: 0px;
  margin: 0px;
  border: none;
  background: none;
  box-shadow: none;
}

.nav-pills {
  margin: 0px 0px 10px 0px;
}
.nav-pills>li>a {
  padding: 2px 10px;
  line-height: 22px;
}
.pagination {
  height: 40px;
  margin: 10px 0px 0px 10px;
}
.pagination a {
  line-height: 30px;
}
.topic_content{
  margin: 0 10px;
}
.preview h1, .preview h2, .preview h3,
.preview h4, .preview h5, .preview h6,
.reply_area h1, .reply_area h2, .reply_area h3,
.reply_area h4, .reply_area h5, .reply_area h6,
.topic_content h1, .topic_content h2, .topic_content h3,
.topic_content h4, .topic_content h5, .topic_content h6 {
  margin: 30px 0 15px 0;
  border-bottom: 1px solid #eee;
}
.topic_content h1 {
  font-size: 13 * 2.5px;
}

.topic_content h2 {
  font-size: 26px;
}
.topic_content p,
.reply_content p,
.reply_form p,
.preview p {
  font-size: 15px;
  line-height: 1.7em;
  overflow: auto;
}
#main .topic_content p a.content_img,
#main .reply_content p a.content_img {
  color: hsl(0,0%,40%);
  box-shadow: 0px 1px 2px hsla(0, 0%, 55%, 0.6);
  display: inline-block;
  margin: 10px 0px;
}
#main p a.content_img {
  max-width: 100%;
}
div[class$=content] > blockquote > p {
  font-size: 14px;
  line-height: 18px;
}
.index_notify {
  font-size: 14px;
}

/* about score on sidebar */
.top_score {
  color: gray;
  padding: 2px;
}
#sidebar .inner ol {
  margin: 4px 0px;
  list-style: none;
}
.top_score {
  margin-right: 10px;
}

/* format the additional msgs of topics */
div[class$=part] {
  display: inline-block;
}
.click_part {
  width: 80px;
}
.reply_part {
  width: 300px;
}
.form-horizontal .control-group:before,
.form-horizontal .control-group:after {
  display: none;
  line-height: 0;
  content: "";
}

textarea, textarea:focus, input, input:focus {
  box-shadow: 0px 0px 2px rgba(60, 60, 60, 0.5);
  border: none;
}
textarea.editor {
    width: 98%;
    padding: 0px;
    line-height: 2em;
    height: 200px;
    resize: vertical;
    font-size: 15px;
    padding: 0.5em;
    border: none;
}
#edit_reply_form textarea.editor,
#create_topic_form textarea.editor {
    height: 400px;
}

#edit_reply_form .preview,
#create_topic_form .preview {
    min-height: 400px;
}

#submit_btn {
  margin-top: 10px;
}

.marked_icon {
  float: right;
}

.topic_content table,
.reply_content table {
  padding:0;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 100%;
  font: inherit;
}

.topic_content table tr,
.reply_content table tr {
  border-top:1px solid #ccc;
  background-color:#fff;
  margin:0;
  padding:0;
}

.topic_content table tr:nth-child(2n),
.reply_content table tr:nth-child(2n) {
  background-color:#f8f8f8;
}

.topic_content table tr th,
.reply_content table tr th {
  font-weight:bold;
}

.topic_content table tr th,
.topic_content table tr td,
.reply_content table tr th,
.reply_content table tr td {
  border:1px solid #ccc;
  text-align:left;
  margin:0;
  padding:6px 13px;
}

.topic_content table tr th>:first-child,
.topic_content table tr td>:first-child,
.reply_content table tr th>:first-child,
.reply_content table tr td>:first-child {
  margin-top:0;
}

.topic_content table tr th>:last-child,
.topic_content table tr td>:last-child,
.reply_content table tr th>:last-child,
.reply_content table tr td>:last-child {
  margin-bottom:0;
}
